<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../session.jsp"%>
<!DOCTYPE html>
<html lang="ko">
  <head>
  	<%@ include file="../head.jsp"%>
  	<script src="resources/js/jquery.js"></script>
	<script src="resources/js/bootstrap.min.js"></script>
  </head>
  <body>
  	<%@ include file="../menu.jsp"%>
	<div class="container">
		<div class="page-header clearfix">
			<h2 class="pull-left">리그관리</h2>
		</div>
		
		<span class="pull-left" style="margin-bottom:10px;">등록 : ${count}건</span>
		<div class="table-responsive">
			<table class="table table-striped table-hover">
				<thead>
					<tr class="warning row">
						<th class="text-center col-md-3">번호</th>
						<th class="text-center col-md-3">종목</th>
						<th class="text-center col-md-3">리그</th>
						<th class="text-center col-md-3">이동</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list}" var="item">
						<tr class="text-center row">
							<td class="col-md-3">${item.idSport}</td>
							<td class="col-md-3">${item.sportName}</td>
							<td class="col-md-3">${item.leagueCount}</td>
							<td class="col-md-3"><a href="listLeague?id=${item.idSport}">리그관리</a></td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
  </body>
</html>